home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UMASK C Library Procedures UMASK
-
-
-
- NNAAMMEE
- umask - set file creation mode mask
-
- SSYYNNOOPPSSIISS
- oouummaasskk == uummaasskk((nnuummaasskk))
- iinntt oouummaasskk,, nnuummaasskk;;
-
- DDEESSCCRRIIPPTTIIOONN
- _U_m_a_s_k sets the process's file mode creation mask to _n_u_m_a_s_k
- and returns the previous value of the mask. The low-order 9
- bits of _n_u_m_a_s_k are used whenever a file is created, clearing
- corresponding bits in the file mode (see _c_h_m_o_d(2)). This
- clearing allows each user to restrict the default access to
- his files.
-
- The value is initially 022 (write access for owner only).
- The mask is inherited by child processes.
-
- RREETTUURRNN VVAALLUUEE
- The previous value of the file mode mask is returned by the
- call.
-
- SSEEEE AALLSSOO
- chmod(2), mknod(2), open(2)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 May 9, 1985 1
-
-
-
-